package com.carpedil.client.movie.service;

import com.carpedil.common.dto.MovieDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/** @author Administrator */
// @FeignClient(name = "FeiginMovieService", url = "http://localhost:6003")
@FeignClient("movieServer")
public interface FeiginMovieService {
  @GetMapping("/movie/list")
  @ResponseBody
  public List<MovieDTO> getAllMovie();

  @GetMapping("/movie/find/{movieId}")
  @ResponseBody
  public MovieDTO findMovieById(@PathVariable("movieId") Integer movieId);
}
